package com.fr.base.core.antlr;

class TreeBlockContext extends BlockContext
{
  protected boolean nextElementIsRoot = true;

  public void addAlternativeElement(AlternativeElement paramAlternativeElement)
  {
    TreeElement localTreeElement = (TreeElement)this.block;
    if (this.nextElementIsRoot)
    {
      localTreeElement.root = ((GrammarAtom)paramAlternativeElement);
      this.nextElementIsRoot = false;
    }
    else
    {
      super.addAlternativeElement(paramAlternativeElement);
    }
  }
}